package com.tencreat.domain.mall.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("前端砍价商品列表")
public class ResMallGoodsCutsVO {
    @ApiModelProperty("商品编号")
    private String goodsSn;

    @ApiModelProperty("商品id")
    private Long goodsId;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("总砍价次数")
    private Integer cutCount;

    @ApiModelProperty("正在砍价次数")
    private Integer joinCount;

    @ApiModelProperty("最低价(底价)")
    private BigDecimal cutPrice;

    @ApiModelProperty("商品原价")
    private BigDecimal originPrice;

    @ApiModelProperty("砍价商品id")
    private Long cutId;

    @ApiModelProperty("商品图片")
    private String picUrl;

    @ApiModelProperty("剩余砍价金额")
    private BigDecimal cutBalance;

    @ApiModelProperty("物流类型")
    private Long logisticsId;

    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;


}
